﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Login.ascx.cs" Inherits="userControl_Login" %>

<style type="text/css">
    .auto-style1 {
        height: 20px;
    }

    .auto-style3 {
        height: 20px;
        width: 59px;
        text-align: right;
    }

    .auto-style4 {
        width: 59px;
        text-align: right;
    }

    .auto-style5 {
        width: 59px;
    }

    .auto-style7 {
        height: 20px;
        width: 150px;
    }

    .auto-style8 {
        width: 150px;
        text-align:center;
    }

    .auto-style9 {
        color: #FF0000;
    }
</style>
<div id="box">
<asp:Panel ID="Panel1" runat="server" Width="250px">
    <table width="100%" style="font-size: 14px">
        <tr>
            <td colspan="3" style="text-align:center;font-weight:bold"> Login</td>

        </tr>
        <tr>
            <td class="auto-style4">Username:</td>
            <td class="auto-style8">
                <asp:TextBox ID="txtUsername" runat="server" Width="145px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" CssClass="auto-style9" ErrorMessage="*" ControlToValidate="txtUsername"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style3">Password:</td>
            <td class="auto-style7">
                <asp:TextBox ID="txtPassword" runat="server" Width="145px" TextMode="Password"></asp:TextBox>
            </td>
            <td class="auto-style1">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" CssClass="auto-style9" ErrorMessage="*" ControlToValidate="txtPassword"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="3" style="text-align:center">
                <asp:Button ID="btnLogin" runat="server" Text="Login" OnClick="btnLogin_Click" />
            </td>            
        </tr>
        <tr>
            <td colspan="3" style="text-align:center">
                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/RegisterPage.aspx">Register</asp:HyperLink>
            </td>
            
        </tr>
        <tr>
            <td colspan="3">
                <asp:Label ID="lblMsgLogin" runat="server" Text=""></asp:Label>
            </td>            
        </tr>
    </table>
</asp:Panel>
</div>
<br />
<asp:Panel ID="Panel2" runat="server" Width="250px">
    <table width="100%" style="text-align:center">
        <tr>
            <td>Hello,<asp:Label ID="lblUsername" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="bantLogout" runat="server" Text="Logout" OnClick="bantLogout_Click" /></td>
        </tr>
    </table>
</asp:Panel>
